import 'package:flutter_hsh/pages/main/main_view.dart';
import 'package:flutter_hsh/pages/mine/feedback/feedback_view.dart';
import 'package:flutter_hsh/pages/splash/splash_view.dart';

import 'package:get/get.dart';
import '../pages/Home/health_score_binding.dart';
import '../pages/Home/health_score_view.dart';
import '../pages/main/main_binding.dart';
import '../pages/mine/feedback/feedback_binding.dart';
import '../pages/jilu/jilu_binding.dart';
import '../pages/jilu/jilu_view.dart';
import '../pages/junk_cleanup/junk_cleanup_binding.dart';
import '../pages/junk_cleanup/junk_cleanup_view.dart';
import '../pages/phone_boost/phone_boost_binding.dart';
import '../pages/phone_boost/phone_boost_view.dart';
import '../pages/phone_cooldown/phone_cooldown_binding.dart';
import '../pages/phone_cooldown/phone_cooldown_view.dart';
import '../pages/memory_release/memory_release_binding.dart';
import '../pages/memory_release/memory_release_view.dart';
import '../pages/security_scan/security_scan_binding.dart';
import '../pages/security_scan/security_scan_view.dart';
import '../pages/jilu_add/jilu_add_binding.dart';
import '../pages/jilu_add/jilu_add_view.dart';
import '../pages/reliang/reliang_binding.dart';
import '../pages/reliang/reliang_view.dart';
import '../pages/season_detail/season_detail_binding.dart';
import '../pages/season_detail/season_detail_view.dart';

import '../pages/splash/splash_binding.dart';

import '../pages/web_view/webview_binding.dart';
import '../pages/web_view/webview_page.dart';

part './app_routes.dart';

abstract class AppPages {
  static final pages = [
    GetPage(
      name: Routes.splash,
      page: () => const SplashPage(),
      binding: SplashBinding(),
    ),
    GetPage(
      name: Routes.main,
      page: () => const MainPage(),
      binding: MainBinding(),
    ),
    GetPage(
      name: Routes.feedback,
      page: () => FeedbackPage(),
      binding: FeedBackBinding(),
    ),
    GetPage(
      name: Routes.webView,
      page: () => const WebViewPage(),
      binding: WebViewBinding(),
    ),
    GetPage(
      name: Routes.home,
      page: () => const HealthScoreView(),
      binding: HealthScoreBinding(),
    ),
    GetPage(
      name: Routes.jilu,
      page: () => const JiluPage(),
      binding: JiluBinding(),
    ),
    GetPage(
      name: Routes.jiluAdd,
      page: () => const JiluAddView(),
      binding: JiluAddBinding(),
    ),
    GetPage(
      name: Routes.reliang,
      page: () => ReliangPage(),
      binding: ReliangBinding(),
    ),
    GetPage(
      name: Routes.junkCleanup,
      page: () => const JunkCleanupPage(),
      binding: JunkCleanupBinding(),
    ),
    GetPage(
      name: Routes.phoneBoost,
      page: () => const PhoneBoostPage(),
      binding: PhoneBoostBinding(),
    ),
    GetPage(
      name: Routes.phoneCoolDown,
      page: () => const PhoneCoolDownPage(),
      binding: PhoneCoolDownBinding(),
    ),
    GetPage(
      name: Routes.memoryRelease,
      page: () => const MemoryReleasePage(),
      binding: MemoryReleaseBinding(),
    ),
    GetPage(
      name: Routes.securityScan,
      page: () => const SecurityScanView(),
      binding: SecurityScanBinding(),
      transition: Transition.fadeIn,
      transitionDuration: const Duration(milliseconds: 300),
    ),
    GetPage(
      name: Routes.securityScan,
      page: () => const SecurityScanView(),
      binding: SecurityScanBinding(),
      transition: Transition.fadeIn,
      transitionDuration: const Duration(milliseconds: 300),
    ),
    GetPage(
      name: Routes.seasonDetail,
      page: () => const SeasonDetailPage(),
      binding: SeasonDetailBinding(),
      transition: Transition.fadeIn, // 添加淡入过渡动画
      transitionDuration: const Duration(milliseconds: 300), // 设置过渡动画时长
    ),
  ];
}
